﻿@model IEnumerable<RRHH.RRHH_Service.BEContrato>
@{
    ViewBag.Title = "Index";
}


<link href="@Url.Content("~/Content/Css.css")" rel="stylesheet" type="text/css" />

<h2>Listado Contratos</h2>

<p>
    @Html.JQueryUI().ActionButton("REGISTRA CONTRATO", "Create")
    
</p>
<table class="tbempleado">
    <tr class="headerStyle" style="background-color:#507CD1;color:#FFFFFF">
        <th>
            @Html.DisplayNameFor(model => model.IDCONTRATO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FECHAINICIO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.FECHAFIN)
        </th>
  
        <th>
            @Html.DisplayNameFor(model => model.IDPERSONAL)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SALARIORECIBO)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.IDCONTRATO)
        </td>
        <td>
      
            
            @Html.DisplayFor(modelItem => item.FECHAINICIO)
        </td>
       <td>
            @Html.DisplayFor(modelItem => item.FECHAFIN)
        </td>
  
        <td>
            @Html.DisplayFor(modelItem => item.IDPERSONAL)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SALARIORECIBO)
        </td>
          <td>
              <a href="@Url.Action("Edit", "ContratoEF", new{})" >
                        <img src="../../Images/editPlanilla.png" style="max-width:20px;" title="Ver Contratos" />
               </a>
         </td>
        
    </tr>
}

</table>
